package com.cpit.qualitycontrol.dao;

import com.cpit.qualitycontrol.entity.ProcessRuleToImageFile;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author Hull
 * @date 2017/10/9.
 */
public interface ProcessRuleToImageFileRepository extends JpaRepository<ProcessRuleToImageFile, Long> {
    List<ProcessRuleToImageFile> findByProcessRuleIdOrderById(Long processRuleId);
    void deleteByProcessRuleId(Long processRuleId);
}
